package com.ruoyi.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * mail配置
 *
 * @author ruoyi
 */
@Component
@ConfigurationProperties(prefix = "mail")
public class MailConfig {

    /** username */
    private static String username;

    /** password */
    private static String password;

    /** host */
    private static String host;

    /** port */
    private static int port;

    /** protocol */
    private static String protocol;

    /** defaultEncoding */
    private static String defaultEncoding;



    /** useSSL */
    private static String encryptionMethod;

    public static String getEncryptionMethod() {
        return encryptionMethod;
    }

    public  void setEncryptionMethod(String encryptionMethod) {
        MailConfig.encryptionMethod = encryptionMethod;
    }

    public static String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        MailConfig.username = username;
    }

    public static String getPassword() {
        return password;
    }

    public  void setPassword(String password) {
        MailConfig.password = password;
    }

    public static String getHost() {
        return host;
    }

    public  void setHost(String host) {
        MailConfig.host = host;
    }

    public static int getPort() {
        return port;
    }

    public void setPort(int port) {
        MailConfig.port = port;
    }

    public static String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        MailConfig.protocol = protocol;
    }

    public static String getDefaultEncoding() {
        return defaultEncoding;
    }

    public void setDefaultEncoding(String defaultEncoding) {
        MailConfig.defaultEncoding = defaultEncoding;
    }

}
